import React, {Component} from 'react';
import {connect} from 'dva';
import {Row} from 'antd'
import {routerRedux} from 'dva/router';
import {BrowserRouter as Router, Route, Switch, Redirect, Link} from "react-router-dom";
import {setHistory} from "../util/uitls";
import Routes from './routes'

const {ConnectedRouter} = routerRedux;

export default ({history, app}) => {
    return (<ConnectedRouter history={history}>
            {
                setHistory(history)
            }
            <Routes/>

        </ConnectedRouter>
    );
}

